package com.hopital5.zhangyz.vo.response;

import com.hopital5.zhangyz.model.Label;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class LabelVoResponse {
    private Long id;
    private String name;

    public static LabelVoResponse build(Label label) {
        LabelVoResponse labelVoResponse = LabelVoResponse.builder()
                .id(label.getId())
                .name(label.getName())
                .build();
        return labelVoResponse;
    }

}
